﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class WsOperations : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void GoButton_Click(object sender, EventArgs e)
    {
        try
        {
            WsOperationsService.WsOperationsClient ws_client =
                new WsOperationsService.WsOperationsClient();

            String url = url_textbox.Text;

            string[] results = ws_client.getWsOperations(url);
            
            foreach (string result in results)
            {
                _resultsTextbox.Text += result + "\r\n";
            }

        }
        catch (Exception ex)
        {
            String message =
                "An Exception occured in WsTesting tester. " + ex.Message;
            Console.WriteLine(message);
        }
    }
}